<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    var dog = {
        dogName = "Lily",
        weight = "20kg",
        color = "black",
        age = 2,
        jump:function(){
            if(this.age>=2){
                console.log(this.dogName + "can jump");
            } 
        }
    }

    /**
     * 定义一个cat对象，属性有名字、品种、体重、
    */
   var cat = {
       catName = "",
       weight = "",
       type = "",
   }
</script>
</html>